import CommonHead from "../system/common/commonHead";
export default {
  props:["childName"],
  name: "ColumnManage",
  components: {CommonHead},
  data() {
    return {
      value1:false,
      value2:true,
      childName:'栏目管理',
      value:'100',
      dialogFormVisible: false,
      formLabelWidth: '80px',
      mes:{
        user_name:'alice',
        title:'栏目管理',
        router:['首页','内容管理','栏目管理']
      },
      tableData: [{
        name: '跑步技巧',
        sequence: '1',
        describe: '这里是关于本栏目的简要描述，30字以内',
        status:''
      }, {
        name: '减脂健身',
        sequence: '2',
        describe: '这里是关于本栏目的简要描述，30字以内',
        status: ''
      }, {
        name: '睡个好觉',
        sequence: '3',
        describe: '这里是关于本栏目的简要描述，30字以内',
        status: ''
      }, {
        name: '保护心脏',
        sequence: '4',
        describe: '这里是关于本栏目的简要描述，30字以内',
        status: ''
      }, {
        name: '健康日常',
        sequence: '5',
        describe: '这里是关于本栏目的简要描述，30字以内',
        status: ''
      }],
      multipleSelection: []
    }
  },

  methods: {
    del() {
      this.$confirm('此操作将永久删除该文件, 是否继续?', '提示', {
        confirmButtonText: '确定',
        cancelButtonText: '取消',
        type: 'warning'
      }).then(() => {
        this.$message({
          type: 'success',
          message: '删除成功!'
        });
      }).catch(() => {
        this.$message({
          type: 'info',
          message: '已取消删除'
        });
      });
    },
    toggleSelection(rows) {
      if (rows) {
        rows.forEach(row => {
          this.$refs.multipleTable.toggleRowSelection(row);
        });
      } else {
        this.$refs.multipleTable.clearSelection();
      }
    },
    handleSelectionChange(val) {
      this.multipleSelection = val;
    }
  }
}
